import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '卡种Id',
            dataIndex: 'vipcardId',
            width: 200,
        },
        {
            title: '服务Id',
            dataIndex: 'serverId',
            width: 200,
        },
        {
            title: '服务描述',
            dataIndex: 'serverDesc',
            width: 200,
        },
        {
            title: '有效期',
            dataIndex: 'validDay',
            width: 200,
        },
        {
            title: '有效期',
            dataIndex: 'validDayType',
            width: 200,
        },
        {
            title: '值',
            dataIndex: 'serverValue',
            width: 200,
        },
        {
            title: '数值类型',
            dataIndex: 'numType',
            width: 200,
        },
        {
            title: '计费方式（1期间卡 2计次卡）',
            dataIndex: 'billingWay',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'isSet',
            width: 200,
        },
        {
            title: '排序',
            dataIndex: 'serverSort',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '卡种Id',
            field: 'vipcardId',
            component: 'Input',
            required: true,
        },
        {
            label: '服务Id',
            field: 'serverId',
            component: 'Input',
            required: true,
        },
        {
            label: '服务描述',
            field: 'serverDesc',
            component: 'Input',
            required: true,
        },
        {
            label: '有效期',
            field: 'validDay',
            component: 'Input',
            required: true,
        },
        {
            label: '有效期',
            field: 'validDayType',
            component: 'Input',
            required: true,
        },
        {
            label: '值',
            field: 'serverValue',
            component: 'Input',
            required: true,
        },
        {
            label: '数值类型',
            field: 'numType',
            component: 'Input',
            required: true,
        },
        {
            label: '计费方式（1期间卡 2计次卡）',
            field: 'billingWay',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'isSet',
            component: 'Input',
            required: true,
        },
        {
            label: '排序',
            field: 'serverSort',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
